home *** CD-ROM | disk | FTP | other *** search
/ CD Exchange / CD Exchange - Volume 1.iso / graphics / utils / ham8-jpeg / source / display24.h < prev    next >
Text File  |  1992-12-20  |  1KB  |  42 lines

  1. /*
  2.  * display24.h Michael Saunby    M.Saunby@reading.ac.uk
  3.  *
  4.  * Release 1.0
  5.  *
  6.  * Display 24 bit RGB data using the Albert HAM8 screen.
  7.  */
  8.  
  9. /* Pubscreen name */
  10. #define HAM8_ALBERT_NAME "HAM-8 Albert"
  11.  
  12. /* Port name - used for palette queries */
  13. #define HAM8_ALBERT_PORT HAM8_ALBERT_NAME
  14.  
  15. /* Maximum run of pixels dervied from previous
  16.  * 20 looks a bit messy, 40 is OK
  17.  * If MAX_HAMSLIP is not defined we dont do this
  18.  */
  19. /* #define MAX_HAMSLIP 40 */
  20.  
  21. int StandardPalette (struct ViewPort * vp, UWORD shared);
  22. /* 0 == OK, n == NUMBER OF ERRORS */
  23.  
  24. VOID ReleasePens (struct ViewPort * vp);
  25.  
  26. /*
  27.  * WritePixelArray24() - See WritePixelArray8() for info on temprp etc.
  28.  */
  29. __regargs VOID 
  30. WritePixelArray24 (struct RastPort * rp, const UWORD xstart,
  31.            const UWORD ystart, const UWORD width, const UWORD height, 
  32.                    UBYTE r[], UBYTE g[], UBYTE b[],
  33.            UBYTE * pen_array, struct RastPort * temprp);
  34.  
  35. /*
  36.  * WritePixel24() - The important thing here is to fix the next pixel as
  37.  * many other pixels may depend on it being right.
  38.  */
  39. __regargs VOID 
  40. WritePixel24 (struct RastPort * rp, const UWORD xcoord,
  41.        const UWORD ycoord, const UBYTE r, const UBYTE g, const UBYTE b);
  42.